import _fetch from './request.js'

//获取列表
function getSubjectList(params) {
    return _fetch({
        url: '/subject/list',
        params
    })
}

//设置状态
function setSubjectStatus(data) {
    return _fetch({
        url: '/subject/status',
        method: 'post',
        data
    })
}

//新增学科
function addSubject(data) {
    return _fetch({
        url: '/subject/add',
        method: 'post',
        data
    })
}

//编辑
function editSubject(data) {
    return _fetch({
        url: '/subject/edit',
        method: 'post',
        data
    })
}

//删除
function delSubject(data) {
    return _fetch({
        url: '/subject/remove',
        method: 'post',
        data
    })
}

export {
    getSubjectList,
    setSubjectStatus,
    addSubject,
    editSubject,
    delSubject
}